namespace Billing2
{
    using System;
    using System.Web.UI;

    public class Download : Page
    {
        private void GetPermission()
        {
            ClsACLHelper cls = new ClsACLHelper();
            string pageName = this.Page.ToString().Substring(4, this.Page.ToString().Substring(4).Length - 5) + ".aspx";
            cls.SetPermission(LoginUser.TreeMenu, pageName);
            if (!cls.Read0)
            {
                base.Response.Redirect("logout.aspx", true);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.GetPermission();
        }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            ViewStateUserKey = Session.SessionID;
        }
    }
}
